<template>
  <div>
    <van-nav-bar
      title="搜索"
      left-arrow
      @click-left="
        () => {
          router.push('home/index');
        }
      "
    />

    <van-search
      v-model="title"
      shape="round"
      background="#4fc08d"
      placeholder="请输入搜索关键词"
      @search="onSearch"
    />
  </div>
</template>

<script setup>
import { useRoute, useRouter } from "vue-router";

const router = useRouter();
const route = useRoute();
</script>

<style lang="scss" scoped></style>
